<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>错误 - 智界论坛</title>
    <link rel="stylesheet" href="css/tech-style.css">
</head>
<body>
<nav class="navbar">
    <div class="main-container">
        <a href="index.jsp" class="navbar-brand">智界论坛</a>
        <ul class="navbar-nav">
            <li><a href="index.jsp">首页</a></li>
            <li><a href="postForm.jsp">发帖</a></li>
            <c:choose>
                <c:when test="${not empty sessionScope.user}">
                    <li><a href="logout">注销</a></li>
                </c:when>
                <c:otherwise>
                    <li><a href="login.jsp">登录</a></li>
                    <li><a href="register.jsp">注册</a></li>
                </c:otherwise>
            </c:choose>
        </ul>
    </div>
</nav>

<main class="main-container" style="padding-top: 2rem; padding-bottom: 2rem;">
    <div class="card">
        <div class="card-header">
            <h3>错误</h3>
        </div>
        <div class="card-body">
            <p>${error}</p>
            <a href="index.jsp">返回首页</a>
        </div>
    </div>
</main>

<footer class="footer">
    <div class="footer-content">
        <p>&copy; 2025 智界论坛</p>
        <p>科技改变未来</p>
    </div>
</footer>
</body>
</html>